package com.kuaimacode.kframework.api.vo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author qinyong
 * @Title:
 * @Package com.kuaimacode.kframework.api.vo.request
 * @Description: created by IntelliJ IDEA
 * @date 2019-03-09 21:23
 */
@Data
public class VerifyCodeLoginReq {

    @ApiModelProperty(value = "手机号")
    @Pattern(regexp = "^(\\d){11}$",message = "手机号码格式错误")
    @NotBlank(message = "手机号码不能为空")
    private String phone;
    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String verifyCode;
    @ApiModelProperty(value = "微信返回的unionId，如果不为空则为微信登陆后绑定手机号场景")
    private String unionId;
    @ApiModelProperty(value = "微信返回的openId，如果不为空则为微信登陆后绑定手机号场景")
    private String openId;
}
